<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>预定义常量</title>
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-base.css" />
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-medium.css" />

 </head>
 <body class="docs"><div class="navbar navbar-fixed-top">
  <div class="navbar-inner clearfix">
    <ul class="nav" style="width: 100%">
      <li style="float: left;"><a href="pcntl.resources.html">« 资源类型</a></li>
      <li style="float: right;"><a href="pcntl.examples.html">范例 »</a></li>
    </ul>
  </div>
</div>
<div id="breadcrumbs" class="clearfix">
  <ul class="breadcrumbs-container">
    <li><a href="index.html">PHP Manual</a></li>
    <li><a href="book.pcntl.html">PCNTL</a></li>
    <li>预定义常量</li>
  </ul>
</div>
<div id="layout">
  <div id="layout-content"><div id="pcntl.constants" class="appendix">
 <h1>预定义常量</h1>

 <p class="para">
  下面列出的信号列表用于支持进程控制函数。关于这些信号默认行为的更详细信息请查看您系统的
  signal（7）man 手册
 </p>

 <dl id="pcntl.constants.common">
  <strong class="title">进程控制常量</strong>
  
   <dt id="constant.wnohang">
    <strong><code>WNOHANG</code></strong>
    (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">

    </span>
   </dd>

  
  
   <dt id="constant.wuntraced">
    <strong><code>WUNTRACED</code></strong>
    (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">

    </span>
   </dd>

  
 </dl>


 <dl id="pcntl.constants.sig">
  <strong class="title">SIG_* 常量</strong>
  
   <dt id="constant.sig-ign">
    <strong><code>SIG_IGN</code></strong>
    (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">

    </span>
   </dd>

  
  
   <dt id="constant.sig-dfl">
    <strong><code>SIG_DFL</code></strong>
    (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">

    </span>
   </dd>

  
  
   <dt id="constant.sig-err">
    <strong><code>SIG_ERR</code></strong>
    (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">

    </span>
   </dd>

  
  
   <dt id="constant.sighup">
    <strong><code>SIGHUP</code></strong>
    (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">

    </span>
   </dd>

  
  
   <dt id="constant.sigint">
    <strong><code>SIGINT</code></strong>
    (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">

    </span>
   </dd>

  
  
   <dt id="constant.sigquit">
    <strong><code>SIGQUIT</code></strong>
    (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">

    </span>
   </dd>

  
  
   <dt id="constant.sigill">
    <strong><code>SIGILL</code></strong>
    (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">

    </span>
   </dd>

  
  
   <dt id="constant.sigtrap">
    <strong><code>SIGTRAP</code></strong>
    (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">

    </span>
   </dd>

  
  
   <dt id="constant.sigabrt">
    <strong><code>SIGABRT</code></strong>
    (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">

    </span>
   </dd>

  
  
   <dt id="constant.sigiot">
    <strong><code>SIGIOT</code></strong>
    (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">

    </span>
   </dd>

  
  
   <dt id="constant.sigbus">
    <strong><code>SIGBUS</code></strong>
    (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">

    </span>
   </dd>

  
  
   <dt id="constant.sigfpe">
    <strong><code>SIGFPE</code></strong>
    (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">

    </span>
   </dd>

  
  
   <dt id="constant.sigkill">
    <strong><code>SIGKILL</code></strong>
    (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">

    </span>
   </dd>

  
  
   <dt id="constant.sigusr1">
    <strong><code>SIGUSR1</code></strong>
    (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">

    </span>
   </dd>

  
  
   <dt id="constant.sigsegv">
    <strong><code>SIGSEGV</code></strong>
    (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">

    </span>
   </dd>

  
  
   <dt id="constant.sigusr2">
    <strong><code>SIGUSR2</code></strong>
    (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">

    </span>
   </dd>

  
  
   <dt id="constant.sigpipe">
    <strong><code>SIGPIPE</code></strong>
    (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">

    </span>
   </dd>

  
  
   <dt id="constant.sigalrm">
    <strong><code>SIGALRM</code></strong>
    (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">

    </span>
   </dd>

  
  
   <dt id="constant.sigterm">
    <strong><code>SIGTERM</code></strong>
    (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">

    </span>
   </dd>

  
  
   <dt id="constant.sigstkflt">
    <strong><code>SIGSTKFLT</code></strong>
    (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">

    </span>
   </dd>

  
  
   <dt id="constant.sigcld">
    <strong><code>SIGCLD</code></strong>
    (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">

    </span>
   </dd>

  
  
   <dt id="constant.sigchld">
    <strong><code>SIGCHLD</code></strong>
    (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">

    </span>
   </dd>

  
  
   <dt id="constant.sigcont">
    <strong><code>SIGCONT</code></strong>
    (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">

    </span>
   </dd>

  
  
   <dt id="constant.sigstop">
    <strong><code>SIGSTOP</code></strong>
    (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">

    </span>
   </dd>

  
  
   <dt id="constant.sigtstp">
    <strong><code>SIGTSTP</code></strong>
    (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">

    </span>
   </dd>

  
  
   <dt id="constant.sigttin">
    <strong><code>SIGTTIN</code></strong>
    (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">

    </span>
   </dd>

  
  
   <dt id="constant.sigttou">
    <strong><code>SIGTTOU</code></strong>
    (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">

    </span>
   </dd>

  
  
   <dt id="constant.sigurg">
    <strong><code>SIGURG</code></strong>
    (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">

    </span>
   </dd>

  
  
   <dt id="constant.sigxcpu">
    <strong><code>SIGXCPU</code></strong>
    (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">

    </span>
   </dd>

  
  
   <dt id="constant.sigxfsz">
    <strong><code>SIGXFSZ</code></strong>
    (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">

    </span>
   </dd>

  
  
   <dt id="constant.sigvtalrm">
    <strong><code>SIGVTALRM</code></strong>
    (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">

    </span>
   </dd>

  
  
   <dt id="constant.sigprof">
    <strong><code>SIGPROF</code></strong>
    (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">

    </span>
   </dd>

  
  
   <dt id="constant.sigwinch">
    <strong><code>SIGWINCH</code></strong>
    (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">

    </span>
   </dd>

  
  
   <dt id="constant.sigpoll">
    <strong><code>SIGPOLL</code></strong>
    (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">

    </span>
   </dd>

  
  
   <dt id="constant.sigio">
    <strong><code>SIGIO</code></strong>
    (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">

    </span>
   </dd>

  
  
   <dt id="constant.sigpwr">
    <strong><code>SIGPWR</code></strong>
    (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">

    </span>
   </dd>

  
  
   <dt id="constant.sigsys">
    <strong><code>SIGSYS</code></strong>
    (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">

    </span>
   </dd>

  
  
   <dt id="constant.sigbaby">
    <strong><code>SIGBABY</code></strong>
    (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">

    </span>
   </dd>

  
  
   <dt id="constant.sig-block">
    <strong><code>SIG_BLOCK</code></strong>
    (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">

    </span>
   </dd>

  
  
   <dt id="constant.sig-unblock">
    <strong><code>SIG_UNBLOCK</code></strong>
    (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">

    </span>
   </dd>

  
  
   <dt id="constant.sig-setmask">
    <strong><code>SIG_SETMASK</code></strong>
    (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">

    </span>
   </dd>

  
 </dl>


 <dl id="pcntl.constants.si">
  <strong class="title">SI_* 常量</strong>
  
   <dt id="constant.si-user">
    <strong><code>SI_USER</code></strong>
    (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">

    </span>
   </dd>

  
  
   <dt id="constant.si-noinfo">
    <strong><code>SI_NOINFO</code></strong>
    (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">

    </span>
   </dd>

  
  
   <dt id="constant.si-kernel">
    <strong><code>SI_KERNEL</code></strong>
    (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">

    </span>
   </dd>

  
  
   <dt id="constant.si-queue">
    <strong><code>SI_QUEUE</code></strong>
    (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">

    </span>
   </dd>

  
  
   <dt id="constant.si-timer">
    <strong><code>SI_TIMER</code></strong>
    (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">

    </span>
   </dd>

  
  
   <dt id="constant.si-msggq">
    <strong><code>SI_MSGGQ</code></strong>
    (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">

    </span>
   </dd>

  
  
   <dt id="constant.si-asyncio">
    <strong><code>SI_ASYNCIO</code></strong>
    (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">

    </span>
   </dd>

  
  
   <dt id="constant.si-sigio">
    <strong><code>SI_SIGIO</code></strong>
    (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">

    </span>
   </dd>

  
  
   <dt id="constant.si-tkill">
    <strong><code>SI_TKILL</code></strong>
    (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">

    </span>
   </dd>

  
 </dl>


 <dl id="pcntl.constants.cld">
  <strong class="title">CLD_* 常量</strong>
  
   <dt id="constant.cld-exited">
    <strong><code>CLD_EXITED</code></strong>
    (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">

    </span>
   </dd>

  
  
   <dt id="constant.cld-killed">
    <strong><code>CLD_KILLED</code></strong>
    (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">

    </span>
   </dd>

  
  
   <dt id="constant.cld-dumped">
    <strong><code>CLD_DUMPED</code></strong>
    (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">

    </span>
   </dd>

  
  
   <dt id="constant.cld-trapped">
    <strong><code>CLD_TRAPPED</code></strong>
    (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">

    </span>
   </dd>

  
  
   <dt id="constant.cld-stopped">
    <strong><code>CLD_STOPPED</code></strong>
    (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">

    </span>
   </dd>

  
  
   <dt id="constant.cld-continued">
    <strong><code>CLD_CONTINUED</code></strong>
    (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">

    </span>
   </dd>

  
 </dl>


 <dl id="pcntl.constants.trap">
  <strong class="title">TRAP_* 常量</strong>
  
   <dt id="constant.trap-brkpt">
    <strong><code>TRAP_BRKPT</code></strong>
    (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">

    </span>
   </dd>

  
  
   <dt id="constant.trap-trace">
    <strong><code>TRAP_TRACE</code></strong>
    (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">

    </span>
   </dd>

  
 </dl>


 <dl id="pcntl.constants.poll">
  <strong class="title">POLL_* 常量</strong>
  
   <dt id="constant.poll-in">
    <strong><code>POLL_IN</code></strong>
    (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">

    </span>
   </dd>

  
  
   <dt id="constant.poll-out">
    <strong><code>POLL_OUT</code></strong>
    (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">

    </span>
   </dd>

  
  
   <dt id="constant.poll-msg">
    <strong><code>POLL_MSG</code></strong>
    (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">

    </span>
   </dd>

  
  
   <dt id="constant.poll-err">
    <strong><code>POLL_ERR</code></strong>
    (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">

    </span>
   </dd>

  
  
   <dt id="constant.poll-pri">
    <strong><code>POLL_PRI</code></strong>
    (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">

    </span>
   </dd>

  
  
   <dt id="constant.poll-hup">
    <strong><code>POLL_HUP</code></strong>
    (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">

    </span>
   </dd>

  
 </dl>


 <dl id="pcntl.constants.ill">
  <strong class="title">ILL_* 常量</strong>
  
   <dt id="constant.ill-illopc">
    <strong><code>ILL_ILLOPC</code></strong>
    (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">

    </span>
   </dd>

  
  
   <dt id="constant.ill-illopn">
    <strong><code>ILL_ILLOPN</code></strong>
    (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">

    </span>
   </dd>

  
  
   <dt id="constant.ill-illadr">
    <strong><code>ILL_ILLADR</code></strong>
    (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">

    </span>
   </dd>

  
  
   <dt id="constant.ill-illtrp">
    <strong><code>ILL_ILLTRP</code></strong>
    (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">

    </span>
   </dd>

  
  
   <dt id="constant.ill-prvopc">
    <strong><code>ILL_PRVOPC</code></strong>
    (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">

    </span>
   </dd>

  
  
   <dt id="constant.ill-prvreg">
    <strong><code>ILL_PRVREG</code></strong>
    (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">

    </span>
   </dd>

  
  
   <dt id="constant.ill-coproc">
    <strong><code>ILL_COPROC</code></strong>
    (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">

    </span>
   </dd>

  
  
   <dt id="constant.ill-badstk">
    <strong><code>ILL_BADSTK</code></strong>
    (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">

    </span>
   </dd>

  
 </dl>


 <dl id="pcntl.constants.fpe">
  <strong class="title">FPE_* 常量</strong>
  
   <dt id="constant.fpe-intdiv">
    <strong><code>FPE_INTDIV</code></strong>
    (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">

    </span>
   </dd>

  
  
   <dt id="constant.fpe-intovf">
    <strong><code>FPE_INTOVF</code></strong>
    (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">

    </span>
   </dd>

  
  
   <dt id="constant.fpe-fltdiv">
    <strong><code>FPE_FLTDIV</code></strong>
    (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">

    </span>
   </dd>

  
  
   <dt id="constant.fpe-fltovf">
    <strong><code>FPE_FLTOVF</code></strong>
    (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">

    </span>
   </dd>

  
  
   <dt id="constant.fpe-fltund">
    <strong><code>FPE_FLTUND</code></strong>
    (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">

    </span>
   </dd>

  
  
   <dt id="constant.fpe-fltres">
    <strong><code>FPE_FLTRES</code></strong>
    (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">

    </span>
   </dd>

  
  
   <dt id="constant.fpe-fltinv">
    <strong><code>FPE_FLTINV</code></strong>
    (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">

    </span>
   </dd>

  
  
   <dt id="constant.fpe-fltsub">
    <strong><code>FPE_FLTSUB</code></strong>
    (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">

    </span>
   </dd>

  
 </dl>


 <dl id="pcntl.constants.segv">
  <strong class="title">SEGV_* 常量</strong>
  
   <dt id="constant.segv-maperr">
    <strong><code>SEGV_MAPERR</code></strong>
    (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">

    </span>
   </dd>

  
  
   <dt id="constant.segv-accerr">
    <strong><code>SEGV_ACCERR</code></strong>
    (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">

    </span>
   </dd>

  
 </dl>


 <dl id="pcntl.constants.bus">
  <strong class="title">BUS_* 常量</strong>
  
   <dt id="constant.bus-adraln">
    <strong><code>BUS_ADRALN</code></strong>
    (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">

    </span>
   </dd>

  
  
   <dt id="constant.bus-adrerr">
    <strong><code>BUS_ADRERR</code></strong>
    (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">

    </span>
   </dd>

  
  
   <dt id="constant.bus-objerr">
    <strong><code>BUS_OBJERR</code></strong>
    (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">

    </span>
   </dd>

  
 </dl>


 <dl id="pcntl.constants.clone">
  <strong class="title">CLONE_* 常量</strong>
  
   <dt id="constant.clone-newns">
    <strong><code>CLONE_NEWNS</code></strong>
    (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">
     从 PHP 7.4.0 起可用
    </span>
   </dd>

  
  
   <dt id="constant.clone-newipc">
    <strong><code>CLONE_NEWIPC</code></strong>
    (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">
     从 PHP 7.4.0 起可用
    </span>
   </dd>

  
  
   <dt id="constant.clone-newuts">
    <strong><code>CLONE_NEWUTS</code></strong>
    (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">
     从 PHP 7.4.0 起可用
    </span>
   </dd>

  
  
   <dt id="constant.clone-newnet">
    <strong><code>CLONE_NEWNET</code></strong>
    (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">
     从 PHP 7.4.0 起可用
    </span>
   </dd>

  
  
   <dt id="constant.clone-newpid">
    <strong><code>CLONE_NEWPID</code></strong>
    (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">
     从 PHP 7.4.0 起可用
    </span>
   </dd>

  
  
   <dt id="constant.clone-newuser">
    <strong><code>CLONE_NEWUSER</code></strong>
    (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">
     从 PHP 7.4.0 起可用
    </span>
   </dd>

  
  
   <dt id="constant.clone-newcgroup">
    <strong><code>CLONE_NEWCGROUP</code></strong>
    (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">
     从 PHP 7.4.0 起可用
    </span>
   </dd>

  
 </dl>


 <dl id="pcntl.constants.prio">
  <strong class="title">PRIO_* constants</strong>
  
   <dt id="constant.prio-pgrp">
    <strong><code>PRIO_PGRP</code></strong>
    (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">

    </span>
   </dd>

  
  
   <dt id="constant.prio-user">
    <strong><code>PRIO_USER</code></strong>
    (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">

    </span>
   </dd>

  
  
   <dt id="constant.prio-process">
    <strong><code>PRIO_PROCESS</code></strong>
    (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">

    </span>
   </dd>

  
  
   <dt id="constant.prio-darwin-bg">
    <strong><code>PRIO_DARWIN_BG</code></strong>
    (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">
     从 PHP 8.1.0 起可用。
    </span>
   </dd>

  
  
   <dt id="constant.prio-darwin-thread">
    <strong><code>PRIO_DARWIN_THREAD</code></strong>
    (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">
     从 PHP 8.1.0 起可用。
    </span>
   </dd>

  
 </dl>

</div>
</div></div></body></html>